package com.java.day04.method;

import toolClass.tool;

import java.util.Scanner;

public class jiechengDemo {
    public static void main(String[] args) {
        int number;
        long result;
        System.out.println("请输入一个整数:");
        Scanner scanner = new Scanner(System.in);
        number = scanner.nextInt();
        result = tool.jc(number);
        System.out.println(number+"的阶乘为:"+result);
    }
}
